import pandas as pd
import numpy as np

def read_result3():
    try:
        # 读取result3.xlsx文件
        df = pd.read_excel('result3.xlsx')
        print("=== result3.xlsx 文件内容 ===")
        print(f"文件形状: {df.shape}")
        print("\n数据预览:")
        print(df.head(10))
        print("\n列名:")
        print(df.columns.tolist())
        print("\n数据类型:")
        print(df.dtypes)
        print("\n空值统计:")
        print(df.isnull().sum())
        print("\n数据描述:")
        print(df.describe())
        
        return df
    except Exception as e:
        print(f"读取文件时出错: {e}")
        return None

if __name__ == "__main__":
    df = read_result3() 